package com.guomao.controller;


import com.guomao.entity.Order;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

//@Controller
@RestController
public class MyControllerD {


    @RequestMapping("/test1")
    public String test1() {

        return "main";
    }

    @RequestMapping("/test2")
//    @ResponseBody
    public String test2() {

        return "main";
    }


    @RequestMapping("/test3")
//    @ResponseBody
    public Order test3() {

        Order o = new Order();
        o.setId(100);
        o.setName("root");
        o.setOrdertime("2025年9月20日14:17:08");
        o.setStatus(1);
        o.setTotalprice(200);
        return o;
    }
}
